package hhm.framessm.rest.service.impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import hhm.framessm.mapper.TbUserMapper;
import hhm.framessm.pojo.TbUser;
import hhm.framessm.rest.service.TestService;

@Service
public class TestServiceImpl implements TestService {

	@Autowired
	private TbUserMapper mapper;

	@Override
	public void get1() {

		System.out.println("==" + mapper.selectByExample(null).size());

	}

	@Override
	public void add() {

		TbUser user = new TbUser();
		user.setUserName("5590026");
		user.setUserPwd("123456");
		user.setUserRegdate(new Date());

		mapper.insert(user);

	}

}
